Skip to content

🐛 Make atomic config work with scoped enumerations#210

Merged
elbeno merged 2 commits intointel:mainfrom
elbeno:partial-atomic-spec
Mar 20, 2025
Merged

🐛 Make atomic config work with scoped enumerations#210
elbeno merged 2 commits intointel:mainfrom
elbeno:partial-atomic-spec

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Mar 20, 2025

Problem:

  • Configuring stdx::atomic for scoped enumerations doesn't work because a scoped enumeration is not convertible to its configured underlying type.

Solution:

  • Instead of requiring convertibility, require the types to be trivially copyable, and that the size & alignment is compatible.

elbeno added 2 commits March 20, 2025 16:22
Problem:
- There is no test for partial specialization of atomic config.

Solution:
- Add a test for atomic pointers.
Problem:
- Configuring `stdx::atomic` for scoped enumerations doesn't work because a
  scoped enumeration is not convertible to its configured underlying type.

Solution:
- Instead of requiring convertibility, require the types to be trivially
  copyable, and that the size & alignment is compatible.
@elbeno elbeno changed the title ✅ Add test for atomic type partial specialization 🐛 Make atomic config work with scoed enumerations Mar 20, 2025
@elbeno elbeno changed the title 🐛 Make atomic config work with scoed enumerations 🐛 Make atomic config work with scoped enumerations Mar 20, 2025
@elbeno elbeno enabled auto-merge March 20, 2025 23:07
@elbeno elbeno merged commit ea55684 into intel:main Mar 20, 2025
36 checks passed
@elbeno elbeno deleted the partial-atomic-spec branch October 16, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants